<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<%
	String path = request.getContextPath();
%>
<style>

table tr{
height:30px;

}
table tr td{
height:20px;

font-size:15x;
}

</style>
<div style="margin-left:0px;">
 <br/><br/>
<div style="display:inline;">订货方名称：${ order.client.name}</div>                               <div style="display:inline;margin-left:400px;">联系方式：${ order.client.phone}</div> <br/>
        <br/><br/>
<div style="display:inline;">订货日期：<fmt:formatDate value="${ order.createTime}" type="both" dateStyle="full"/>  </div>                               <div style="display:inline;margin-left:280px;">交货日期：</div> 
<br/><br/>
<div style="overflow: auto;height:500px;">

<table id="checkTable" border="1" >
<caption style="font-size:20px;">订货单</caption>
 <tr >
    <td width="31" valign="top" rowspan="2" ><p >序号 </p></td>
    <td width="45" valign="top" rowspan="2" ><p > </p>
      <p >款式 </p></td>
    <td width="50" valign="top" rowspan="2" ><p > </p>
      <p >颜色 </p></td>
    <td width="50" valign="top" rowspan="2" ><p > </p>
      <p >数量 </p></td>
    <td valign="top" colspan="4" ><p >门扇（洞）尺寸mm </p></td>
    <td valign="top" colspan="4" ><p >门套尺寸mm </p></td>
    <td colspan="2" valign="top" ><p > 线条</p></td>
    <td width="77" valign="top" rowspan="2" ><p > </p>
      <p >备注 </p></td>
  </tr>
  <tr >
    <td width="50" valign="top" ><p >高 </p></td>
    <td width="47" valign="top" ><p >宽 </p></td>
    <td width="59" valign="top" >厚</td>
    <td width="59" valign="top" ><p >数量</p></td>
    <td width="60" valign="top" ><p >高 </p></td>
    <td width="60" valign="top" ><p >宽 </p></td>
    <td width="60" valign="top" >厚 </td>
    <td width="56" valign="top" ><p >数量</p></td>
    <td width="33" valign="top" >型号</td>
    <td width="36" valign="top" >数量</td>
  </tr>
 
  <c:forEach items="${order.items}" var="item" varStatus="status">
   <tr >
    <td width="31" valign="top" ><p >${item.id} </p>
      <p >&nbsp;</p></td>
    <td width="45" valign="top" ><p >${item.product.name} </p></td>
    <td width="50" valign="top" ><p >${item.color} </p></td>
<td width="31" valign="top" ></td>
    <td width="50" valign="top" ><p ><fmt:formatNumber pattern="#">${item.doorLeaf.height}</fmt:formatNumber>   </p></td>
    <td width="47" valign="top" ><p ><fmt:formatNumber pattern="#">${item.doorLeaf.width}</fmt:formatNumber> </p></td>
    <td width="59" valign="top" ><fmt:formatNumber pattern="#">${item.doorLeaf.thickness}</fmt:formatNumber></td>
    <td width="59" valign="top" ><p ><fmt:formatNumber pattern="#">${item.doorLeaf.amount}</fmt:formatNumber> </p></td>
    <td width="60" valign="top" ><fmt:formatNumber pattern="#">${item.doorframe.height}</fmt:formatNumber></td>
    <td width="60" valign="top" ><fmt:formatNumber pattern="#">${item.doorframe.width}</fmt:formatNumber></td>
    <td width="60" valign="top" ><fmt:formatNumber pattern="#">${item.doorframe.thickness}</fmt:formatNumber></td>
    <td width="56" valign="top" ><fmt:formatNumber pattern="#">${item.doorframe.amount}</fmt:formatNumber></td>
    <td valign="top" ><p > ${item.lineShape.name}</p></td>
    <td width="77" valign="top" ><p ><fmt:formatNumber pattern="#">${item.lineShape.amount}</fmt:formatNumber> </p></td>

    <td width="50" valign="top" >${item.remark}</td>  </tr>
</c:forEach>


  <tr >
    <td width="540" valign="top" colspan="15" ><p > </p>
      <p >注：1.&nbsp;如果是门扇尺寸，请将&#8216;洞&#8217;字划掉。 </p>
      <p >2.&nbsp;如果是门洞尺寸，请将&#8216;扇&#8217;字划掉。 </p>
      <p >尺寸规格： </p>
      <p >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门扇尺寸=门扇高&#215;门扇宽=（门洞高-40）&#215;（门洞宽-70） </p></td>
  </tr>
  <tr >
  	<form method="post" action="<c:url value="/orderstatistic/check.do"/>" class="pageForm required-validate" method="post" enctype=""  onsubmit="return iframeCallback(this,navTabAjaxDone);">
	
    <td width="540" valign="top" colspan="15" >
    <br/><br/>
      <label for="advancePay">预付款</label>
      <input type="text" name="ensureMoney"  class="required number"  id="ensureMoney" /><br/><br/>
      <input type="hidden" name="orderId" value="${order.id }">
      <label for="realPay">应付款</label>
      <input type="text" name="realPay"  class="required number" id="realPay" /><br/><br/>
   
      <label for="favorablePay">优惠款</label>
      <input type="text" name="favorablePay"  class="required number" id="favorablePay" /><br/><br/>
      
      
      
      
      <div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">通过</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">失效</button></div></div></li>
			</ul>
		</div>
      
    
      <p > </p></td>
      
      </form>
  </tr>
</table>


</div>  

</div>

